package com.cebbank.yyi.springbootapp.filter;

import org.apache.ibatis.plugin.Invocation;
import org.springframework.core.Ordered;

import java.lang.reflect.InvocationTargetException;

/**
 * @description:
 * @author: yyi
 * @version: 1.0
 **/

public interface SqlMappersFilter extends Ordered {

    Object doFilter(Invocation invocation, SqlMapperFilterChain sqlMapperFilterChain) throws InvocationTargetException, IllegalAccessException;

    default String getAppName() {
        return this.getClass().getSimpleName();
    }

}
